package com.zygh.policeasset.pojo;

import cn.afterturn.easypoi.util.PoiElUtil;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/Role.class */
public class Role {
    private int id;
    private String roleName;
    private String permissions;
    private boolean findAll;
    private int projectView;
    private int contractEntry;

    public void setId(int id) {
        this.id = id;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public void setPermissions(String permissions) {
        this.permissions = permissions;
    }

    public void setFindAll(boolean findAll) {
        this.findAll = findAll;
    }

    public void setProjectView(int projectView) {
        this.projectView = projectView;
    }

    public void setContractEntry(int contractEntry) {
        this.contractEntry = contractEntry;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Role)) {
            return false;
        }
        Role other = (Role) o;
        if (!other.canEqual(this) || getId() != other.getId()) {
            return false;
        }
        Object this$roleName = getRoleName();
        Object other$roleName = other.getRoleName();
        if (this$roleName == null) {
            if (other$roleName != null) {
                return false;
            }
        } else if (!this$roleName.equals(other$roleName)) {
            return false;
        }
        Object this$permissions = getPermissions();
        Object other$permissions = other.getPermissions();
        if (this$permissions == null) {
            if (other$permissions != null) {
                return false;
            }
        } else if (!this$permissions.equals(other$permissions)) {
            return false;
        }
        return isFindAll() == other.isFindAll() && getProjectView() == other.getProjectView() && getContractEntry() == other.getContractEntry();
    }

    protected boolean canEqual(Object other) {
        return other instanceof Role;
    }

    public int hashCode() {
        int result = (1 * 59) + getId();
        Object $roleName = getRoleName();
        int result2 = (result * 59) + ($roleName == null ? 43 : $roleName.hashCode());
        Object $permissions = getPermissions();
        return (((((((result2 * 59) + ($permissions == null ? 43 : $permissions.hashCode())) * 59) + (isFindAll() ? 79 : 97)) * 59) + getProjectView()) * 59) + getContractEntry();
    }

    public String toString() {
        return "Role(id=" + getId() + ", roleName=" + getRoleName() + ", permissions=" + getPermissions() + ", findAll=" + isFindAll() + ", projectView=" + getProjectView() + ", contractEntry=" + getContractEntry() + PoiElUtil.RIGHT_BRACKET;
    }

    public int getId() {
        return this.id;
    }

    public String getRoleName() {
        return this.roleName;
    }

    public String getPermissions() {
        return this.permissions;
    }

    public boolean isFindAll() {
        return this.findAll;
    }

    public int getProjectView() {
        return this.projectView;
    }

    public int getContractEntry() {
        return this.contractEntry;
    }
}